#include <bits/stdc++.h>

#define ll long long
#define ull unsigned long long
#define uint unsigned int

#define YES cout << "YES" << '\n'
#define NO cout << "NO" << '\n'
#define endl '\n'
const int INF = 1e9;
const int MOD = 998244353;
using namespace std;

/*思考

*/
string gaojingadd(string s1, string s2) {
    int len1 = s1.size();
    int len2 = s2.size();
    int len3 = max(len1, len2);
    string s3(len3 + 1, '0');
    reverse(s1.begin(), s1.end());
    reverse(s2.begin(), s2.end());
    while (s1.size() < len3) s1 += '0';
    while (s2.size() < len3) s2 += '0';
    for (int i = 0; i < len3; i++) {
        s3[i] += s1[i] -'0'+ s2[i] - '0';
        if (s3[i] > '9') {
            s3[i] -= 10;
            s3[i + 1] += 1;
        }
    }
    while (s3.size() != 1 && s3[len3] == '0') {
        s3.pop_back();
        --len3;
    }
    reverse(s3.begin(), s3.end());
    return s3;
}

int main() {
    ios::sync_with_stdio(0);
    cin.tie(0);
    string s1, s2;
    cin >> s1 >> s2;
    cout << gaojingadd(s1, s2) << endl;
    return 0;
}